﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Emails
{
    public class EmailModel
    {
        /// <summary>
        /// 发送人邮箱地址
        /// </summary>
        public string FromAddress { get; set; }

        /// <summary>
        /// 发送人邮箱密码
        /// </summary>
        public string FromPwd { get; set; }

        /// <summary>
        /// 收件人地址
        /// </summary>
        public string ToAddress { get; set; }

        /// <summary>
        /// 邮件主题
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 邮件内容
        /// </summary>
        public string Body { get; set; }

        /// <summary>
        /// 邮件内容是否为html
        /// </summary>
        public bool IsBodyHtml { get; set; }

        /// <summary>
        /// 编码格式
        /// </summary>
        public Encoding Encoding { get; set; }
    }
}
